package com.bian.ticket.user.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.bian.ticket.service.TicketService;
import org.springframework.stereotype.Service;

/**
 * @author bianpengfei
 * @create 2019-02-10 14:25
 **/

@Service
public class UserService  {

    @Reference
    private TicketService ticketService;

    /**
     * 这是hello
     * */
    public void hello() {
        String ticket = ticketService.ticket();
        System.out.println("买到票了，"+ticket);
    }
}
